<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript">
<!--
	function back(){
		window.location.href = "./user.do";
		window.location.target = "main";
	}
	
-->
</script>
</head>
<body>
	<table class="table_frame" cellpadding="0" cellspacing="0">
		<tr>
			<td>
				<table class="table_title" cellpadding="0" cellspacing="0">
					<tr>
						<td class="title_lab" colspan="3">
							&nbsp;&nbsp;&nbsp;&nbsp;<fmt:message key="user.title.view"/>
						</td>
					</tr>
					<tr><td height="15"></td></tr>
					<tr>
						<td valign="bottom" align="right">
							<a href="javascript:back();" title="返回" hidefocus="true">返回</a>&nbsp;&nbsp;&nbsp;&nbsp;
						</td>
					</tr>
					<tr><td height="2"></td></tr>
				</table>
			</td>
		</tr>
		<tr>
			<td height="5"></td>
		</tr>
		<tr>
			<td>
				<table class="table1">
					<tr>
						<td>
							<table class="table_input" cellpadding="0" cellspacing="0" style="margin: 0 0 0 100px;">
								<tr><td colspan="2"></td></tr>
								<tr>
									<td width=""><font color="red">用户类别</font><fmt:message key="common.sign"/></td>
									<td>
									<c:choose>
										<c:when test="${user.businessStatus == '0'}">业务人员</c:when>
										<c:when test="${user.businessStatus == '1'}">营销管理人员</c:when>
										<c:when test="${user.businessStatus == '2'}">其他人员</c:when>
									</c:choose>
									</td>
								</tr>
								<tr>
									<td width="15%"><fmt:message key="user.lable.userCode"/><fmt:message key="common.sign"/></td>
									<td>${user.userCode}</td>
								</tr>
								<tr>
									<td width=""><fmt:message key="user.lable.userName"/><fmt:message key="common.sign"/></td>
									<td>${user.userName}</td>
								</tr>
								<tr>
									<td width=""><fmt:message key="user.lable.deptName"/><fmt:message key="common.sign"/></td>
									<td>${user.deptName}</td>
								</tr>
								<tr>
									<td width=""><fmt:message key="user.lable.roleName"/><fmt:message key="common.sign"/></td>
									<td>${user.roleName}</td>
								</tr>
								<tr>
									<td width=""><fmt:message key="user.lable.subPhone"/><fmt:message key="common.sign"/></td>
									<td>${user.subPhone}</td>
								</tr>
								<tr>
									<td width=""><fmt:message key="user.lable.mobile"/><fmt:message key="common.sign"/></td>
									<td>${user.mobile}</td>
								</tr>
								<tr>
									<td width=""><fmt:message key="user.lable.birthday"/><fmt:message key="common.sign"/></td>
									<td><fmt:formatDate value="${user.birthday}" pattern="yyyy-MM-dd"/></td>
								</tr>
								<tr>
									<td width="">Email：</td>
									<td>${user.email}</td>
								</tr>
								<tr>
									<td width=""><fmt:message key="common.lable.isActivity"/><fmt:message key="common.sign"/></td>
									<td>
										<c:choose>
											<c:when test="${user.isActivity == 1}"><fmt:message key="common.lable.is"/></c:when>
											<c:otherwise><fmt:message key="common.lable.no"/></c:otherwise>
										</c:choose>
									</td>	
								</tr>
								<tr>
									<td width=""><fmt:message key="user.lable.lastLogin"/><fmt:message key="common.sign"/></td>
									<td><fmt:formatDate value="${user.lastLoginDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>	
								</tr>
								<tr>
									<td width=""><fmt:message key="user.lable.createDate"/><fmt:message key="common.sign"/></td>
									<td><fmt:formatDate value="${user.createDate}" pattern="yyyy-MM-dd"/></td>	
								</tr>
								<tr><td colspan="2"></td></tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</body>
</html>